<template>
	<view class="xb-page">
	<form @submit="submit">
    <view>
		<pageHead :title="title"></pageHead>
       <view class="xb-list-cell">
                         <view class="xb-list-cell-row">
                              <view class="xb-page-list-cell-title”>title</view>
                <image class="icon-upload-icon" style="margin-bottom: 10px;" src="../../../static/head.png"></image>
            </view></view>
           <view class="xb-list-cell”>
                         <view class="xb-list-cell-row">
                              <view class="xb-page-list-cell-title”>title</view>
                <input  :v-model="formdata.name"  class="uni-input input-style class_bottom_input_line"  maxlength="10" placeholder="机构名称" />
            </view></view>
            <view class="xb-list-cell">
                         <view class="xb-list-cell-row">
                              <view class="xb-page-list-cell-title”>title</view>

                <input :v-model="formdata.tel" class="uni-input input-style class_bottom_input_line" maxlength="10" placeholder="机构联系方式" />
            </view></view>
            <view class="xb-list-cell”>
                         <view class="xb-list-cell-row">
                              <view class="xb-page-list-cell-title”>title</view>

                <input  :v-model="formdata.address"  class="uni-input input-style xb-input" maxlength="10" placeholder="机构详细地址" />
            </view></view>
           <view class="xb-list-cell”>
                         <view class="xb-list-cell-row">
                              <view class="xb-page-list-cell-title”>title</view>

                <input class="uni-input input-style class_bottom_input_line" maxlength="10" placeholder="头像" />
            </view></view>
            <view class="xb-list-cell”>
                         <view class="xb-list-cell-row">
                              <view class="xb-page-list-cell-title”>title</view>

                <input  :v-model="formdata.ownname"  class="uni-input input-style xb-input" maxlength="10" placeholder="姓名" />
            </view></view>
            <view class="xb-button-cell">
                <button form-type="submit"  class="xb-button" style="margin-left: 20px; margin-right: 20px;" type="primary">退出</button>
            </view>
        </view>
    </view>
	</form>
	</view>
</template>

<script>
	import pageHead from '../../../components/page-head.vue';
    export default {
    	onLoad:function(data){
    		this.orgid=data.orgid;
    		this.initdetail();

    	},
		data:{
			orgid:null,
			title:'',
			formdata:{
        name:'',
        address:'',
        tel:'',
        ownname:'',
		}
			
		},
		methods:{
		initdetail:async function(){
		const res=await orgdetail(formData);
		if(res.success==true){
			this.formdata=res.values;
		}
		}


 		updateorg: async function(){
    uni.showNavigationBarLoading();
 		const res= await updateorg(formData);
 		if(res.success==true){
    formdata.
    uni.hideNavigationBarLoading();

 		}
 		else {
    uni.hideNavigationBarLoading();

 		}

 	}

		chooseimage :function{
		uni.choolseImage({
			success:(imagespath){
				const  temppath=imagespath.tempFilePaths;
				uni.uploadFile({
					url:'',
					filePath:temppath[0],
					name:'',
					formData:formdata,
					success:(updatefiles){

				}
					})
			}
			})

	}






		submit: function(e){
			console.log("");
			}
		},
		components:{
			pageHead
		}

    }
</script>

<style>
    @import "../../../common/uni.css";
    .icon-upload-icon {
        width: 100px;
        height: 100px;
    }

    .input-section-view {
        margin-left: 40px;
        margin-right: 40px;
		margin-bottom: 20px;
    }
	.input-style {s
		font-size: 35px;
		color:#CCCCCC ;
	}

    .class_bottom_input_line {
        border-color: #CCCCCC;
        border-style: solid;
        border-top-width: 0px;
        border-right-width: 0px;
        border-left-width: 0px;
        border-bottom-width: 1px;
    }
	.org-btn {
		border-radius: 0px;
	}
	
</style>
